<?php
// namespace TestNamespace;

// require "vendor/autoload.php";

use PHPUnit\Framework\TestCase;

class MoneyTest extends TestCase
{
    public function testCanBeNegated()
    {
        $a = new Money(1);
        $b = $a->negate();
        //var_dump($b);
        $this->assertEquals(-1, $b->getAmount()); //判断输出是否和预期的相等
    }
}